#list /opt/test_ftp/ 
list=`ls /opt/test_ftp`
# get first war
war_t=`echo $list|awk '{split($0,b,2);print b[1] }'`
echo $war_t
# war_name=`echo $war_t|awk '{split($0,a,2);print a[1]}'`
# echo $war_name

#publish war
if [ "" == "$war_t" ];then
	echo "list is null"
	exit
else
	if [ "CRM" == "$war_t" ];then
		sh /home/work/war_ftp/CRM_warpublish.sh $war_t
	else
		sh /home/work/war_ftp/warpublish.sh $war_t
	fi
fi
#wait for next 
